﻿using HISModel;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HISBLL
{
    public class log_inbll
    {
        /// <summary>
        /// 管理员登录方法
        /// </summary>
        /// <param name="T_Admin"></param>
        /// <returns></returns>
        public DataTable T_Admin()
        {

            return new HISDAL.log_indal().T_Admin();
        }
        /// <summary>
        /// 查询角色数据
        /// </summary>
        /// <returns></returns>
        public List<T_Role> getdatatble()
        {
            return new HISDAL.log_indal().getdatatble();
        }
        /// <summary>
        /// 管理员添加方法
        /// </summary>
        /// <param name="T_Admin"></param>
        /// <returns></returns>
        public int appendAdmin(string Admin_Name, string Admin_Pwd, int Role_ID)
        {
            return new HISDAL.log_indal().appendAdmin(Admin_Name, Admin_Pwd, Role_ID);
        }
        /// <summary>
        /// 普通登录方法
        /// </summary>
        /// <param name="T_Admin"></param>
        /// <returns></returns>
        public DataTable T_User()
        {
            return new HISDAL.log_indal().T_User();
        }
        /// <summary>
        /// 普通添加方法
        /// </summary>
        /// <param name="T_Admin"></param>
        /// <returns></returns>
        public int append(string U_Name, string U_Pwd, string U_Sex, int U_Age, string U_Phone, string U_IdCard)
        {
            return new HISDAL.log_indal().append(U_Name, U_Pwd, U_Sex, U_Age, U_Phone, U_IdCard);
        }
        /// <summary>
        /// 医院数据、单挑、全部
        /// </summary>
        /// <param name="id">单挑查询的医院ID值</param>
        /// <returns></returns>
        public userinfos<T_Hospital> T_Hospitalfenye(int pageindex, int pagesize, string Hosp_ID, string T_Hospital)
        {
            return new HISDAL.log_indal().T_Hospitalfenye(pageindex, pagesize, Hosp_ID, T_Hospital);
        }
        /// <summary>
        /// 权限数据
        /// </summary>
        /// <returns></returns>
        public List<T_Control> T_Control(int id)
        {
            return new HISDAL.log_indal().T_Control(id);
        }
        /// <summary>
        /// 添加、修改医院信息
        /// </summary>
        /// <param name="Hosp"></param>
        /// <returns></returns>
        public int T_Hospital_Add(T_Hospital Hosp)
        {
            return new HISDAL.log_indal().T_Hospital_Add(Hosp);
        }
        /// <summary>
        /// 科室数据
        /// </summary>
        /// <returns></returns>
        public List<T_Office> T_Office()
        {
            return new HISDAL.log_indal().T_Office();
        }

        ///// <summary>
        ///// 医院数据、单挑、全部
        ///// </summary>
        ///// <param name="id">单挑查询的医院ID值</param>
        ///// <returns></returns>
        //public List<T_Hospital> T_Hospital(string id)
        //{
        //    return new HISDAL.log_indal().T_Hospital(id);
        //}
<<<<<<< .mine

        /// <summary>

||||||| .r32
>>>>>>> .r30
        /// <summary>
<<<<<<< .mine
=======

>>>>>>> .r33
        /// 删除医院信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int T_Hospital_Del(int id)
        {
            return new HISDAL.log_indal().T_Hospital_Del(id);
        }
        public List<T_Hospital> T_Hospital(string id)
        {
            return new HISDAL.log_indal().T_Hospital(id);
        }
        /// <summary>
<<<<<<< .mine

        /// 医院数据、单挑、全部
        /// </summary>
        /// <param name="id">单挑查询的医院ID值</param>
        ///// <returns></returns>
        //public List<T_Hospital> T_Hospital(string id)
        //{
        //    return new HISDAL.log_indal().T_Hospital(id);
        //}
        /// <summary>

||||||| .r32
||||||| .r24
        /// 医院数据、单挑、全部
        /// </summary>
        /// <param name="id">单挑查询的医院ID值</param>
        /// <returns></returns>
        public List<T_Hospital> T_Hospital(string id)
        {
            return new HISDAL.log_indal().T_Hospital(id);
        }
        /// <summary>
=======
>>>>>>> .r30
=======

        ///// 医院数据、单挑、全部
        ///// </summary>
        ///// <param name="id">单挑查询的医院ID值</param>
        ///// <returns></returns>
        //public List<T_Hospital> T_Hospital(string id)
        //{
        //    return new HISDAL.log_indal().T_Hospital(id);
        //}

>>>>>>> .r33
        /// 医生分页数据查询
        /// </summary>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <param name="Doctor_ID"></param>
        /// <param name="T_Doctor"></param>
        /// <returns></returns>
        public T_Doctoruserinfos<T_Doctor> T_Doctorfenye(int pageindex, int pagesize, string Doctor_ID, string T_Doctor)
        {
            return new HISDAL.log_indal().T_Doctorfenye( pageindex,  pagesize,  Doctor_ID,  T_Doctor);
        }
    }
}
